package team.kas.anime.service;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import team.kas.anime.pojo.Result;
import team.kas.anime.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    Result login(String remember, String username, String password, String code, HttpServletRequest request);

    Result verifyUsername(String username);

    Result mobileCode(String phone, HttpServletRequest request);

    Result upImg(MultipartFile file, HttpServletRequest request);

    Result register(User user);

//xufangjuan
    Result selectByLike(String value, Integer page, Integer limit);

    Result userlist(Integer page, Integer limit);

    Result deleteBykey(String id);

    Result bulkdelete(String[] ids);

    User selectById(String id);

    Result update(String id, String value, String field);

    Result adduser(User user);

    Result imgupload(MultipartFile file, HttpServletRequest request);
}
